﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DB
{
    class MySqlConnection : DatabaseConnection
    {
        public MySqlConnection(string connectionString, TimeSpan timeout) : base(connectionString, timeout)
        {

        }

        public override void OpenConnection()
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("Connection to MySQL DB opened");
            Console.ForegroundColor = ConsoleColor.White;
        }

        public override void CloseConnection()
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("Connection to MySQL closed");
            Console.ForegroundColor = ConsoleColor.White;
        }
    }
}
